<template>
  <div class="index">
    <b-navbar toggleable="lg" type="dark" variant="info">
      <b-navbar-brand  @click.prevent="goHome">
        <img src="" alt style="width:100px;" />
      </b-navbar-brand>

      <b-navbar-toggle target="nav-collapse"></b-navbar-toggle>

      <b-collapse id="nav-collapse" is-nav>
        <b-navbar-nav class="ml-auto">
          <b-nav-form class="sousuo">
            <b-form-input size="sm" class="mr-sm-2" placeholder="搜索" style="width:300px"></b-form-input>
            <b-button size="sm" class="my-2 my-sm-0" type="submit">搜索</b-button>
          </b-nav-form>
          <b-navbar-nav>
            <b-nav-item  @click.prevent="goHome" class="nav-fintsize">首页</b-nav-item>
            <b-nav-item @click.prevent="goHouse" class="nav-fintsize">房源</b-nav-item>
            <b-nav-item
              @click.prevent="goExperience"
              class="nav-fintsize"
            >体验</b-nav-item>
            <b-nav-item  @click.prevent="goStory" class="nav-fintsize">故事</b-nav-item>
            <b-nav-item @click.prevent="goPerson" class="nav-fintsize">个人中心</b-nav-item>
            <b-nav-item  @click.prevent="showEmp" class="nav-fintsize">显示</b-nav-item>
          </b-navbar-nav>

          <b-nav-item-dropdown text="注册" right>
            <b-nav-item href="/register" @click.prevent="goRegister" class="nav-fintsize">注册</b-nav-item>
            <b-nav-item href="/login" @click.prevent="goLogin" class="nav-fintsize">登录</b-nav-item>
          </b-nav-item-dropdown>
        </b-navbar-nav>
      </b-collapse>
    </b-navbar>
    <!-- </el-header> -->

    <router-view />

    <div id="footer">
      <div id="container">
        <ul>
          <li>
            <h3>联系我们</h3>
          </li>
          <li>客户服务</li>
          <li>400-028-8888</li>
          <li>Email：service@yizhai.com</li>
          <li></li>
          <li>商务合作</li>
          <li>QQ：2014317613</li>
          <li>Email：marketing@yizhai.com</li>
        </ul>
        <ul>
          <li>
            <h3>帮助中心</h3>
          </li>
          <li>
            <a href>房源审核规范</a>
          </li>
          <li>
            <a href>房客安心计划</a>
          </li>
          <li>
            <a href>优质住宿计划</a>
          </li>
          <li>
            <a href>网站地图</a>
          </li>
          <li>
            <a href>房客帮助</a>
          </li>
        </ul>
        <ul>
          <li>
            <h3>公司信息</h3>
          </li>
          <li>
            <a href="#">关于蚂蚁</a>
          </li>
          <li>
            <a href="#">加入我们</a>
          </li>
          <li>
            <a href="#">战略合作</a>
          </li>
          <li>
            <a href="#">媒休报道</a>
          </li>
          <li>
            <a href="#">服务协议</a>
          </li>
          <li>
            <a href="#">隐私政策</a>
          </li>
          <li>
            <a href="#">免责声明</a>
          </li>
        </ul>
        <ul>
          <li>
            <h3>下载APP</h3>
          </li>
          <li>
            <!-- <img src="images/ma.png" alt /> -->
          </li>
          <li>
            <a href>
              <button>Android下载</button>
            </a>
          </li>
          <li>
            <a href>
              <button>iOS下载</button>
            </a>
          </li>
        </ul>
        <ul>
          <li>
            <h3>关注我们</h3>
          </li>
          <li>
            <!-- <img src="images/sina.png" alt /> -->
          </li>
          <li>
            <!-- <img src="images/wx.png" alt /> -->
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goHome() {
      this.$router.push("/index/home");
    },
    goHouse() {
      this.$router.push("/index/house");
    },
    goExperience() {
      this.$router.push("/index/experience");
    },
    goStory() {
      this.$router.push("/index/story");
    },
    goPerson() {
      this.$router.push("/index/person");
    },
    goRegister() {
      this.$router.push("/register");
    },
    goLogin() {
      this.$router.push("/login");
    },
    showEmp() {
      this.$router.push("/showEmp");
    }
  }
};
</script>
<style lang="css" scoped>

.bg-info {
  background-color: rgb(127, 240, 255) !important;
}
.nav-link {
  color: #333 !important;
}
.nav-link:hover {
  color: #ff0 !important;
}
#__BVID__131__BV_button_ /deep/ span {
  color: #333;
}
.ml-auto {
  margin-left: 200px;
}
/* ul{
  margin-left: 300px
} */

* {
  padding: 0px;
  margin: 0px;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}
#footer {
  width: 100%;
  height: 300px;
  /* margin-top: 30px; */
  overflow: hidden;
  background-color: #322c27;
}

#container {
  width: 1000px;
  height: 300px;
  margin: 0 auto;
}

#container ul {
  color: #fff;
  width: 150px;
  height: 300px;
  float: left;
  margin-left: 40px;
}

#container ul li {
  margin-top: 10px;
}

#container ul li a {
  color: #fff;
}

#container ul li img {
  width: 100px;
  height: 100px;
}

h2 {
  text-shadow: 1px 2px black 10;
}
/* #footer {
  width: 100%;
  height: 350px;

  background-color: #322c27;
  overflow: hidden;
}

#container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

#container ul {
  color: #fff;
  width: 200px;
  height: 350px;
  float: left;
  margin-left: 40px;
}

#container ul li {
  margin-top: 10px;
}

#container ul li a {
  color: #fff;
}

#container ul li img {
  width: 100px;
  height: 100px;
}

h2 {
  text-shadow: 1px 2px black 10;
} */
</style>
